package java8_4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Score3 {
    public static void main(String[] args) {
        // &&短路效应
        //两门课的成绩，通过的条件都大于等于60
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入两门课的成绩：");
        int s1=sc.nextInt();
        int s2=sc.nextInt();
        boolean pass=s1>=60 && s2>=60;
        System.out.println("成绩是否合格？"+pass);
    }
}
